package com.qys.livesMall.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.shop.modal.entity.UserProductPreference;
import org.apache.ibatis.annotations.Param;

/**
 * 用户商品偏好表(UserProductPreference)表数据库访问层
 *
 * @author makejava
 * @since 2023-08-23 18:10:54
 */
public interface UserProductPreferenceMapper extends BaseMapper<UserProductPreference> {

    /**
     * 更新浏览量
     * @param userId 用户id
     * @param productCategoryId 商品分类
     */
    void updateViews(@Param("userId") Long userId, @Param("productCategoryId") Long productCategoryId);
}

